package com.eckey.lab.controller;

import com.eckey.lab.result.ResultBean;
import com.eckey.lab.service.MiCro1Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/micro1")
public class MiCro1Controller {

    @Autowired
    private MiCro1Service miCro1Service;

    @GetMapping("/productLists")
    public ResultBean queryProductLists() {
        String result = miCro1Service.queryProductLists();
        String result1 = miCro1Service.queryOrderLists();
        return ResultBean.success(result);
    }

    @GetMapping("/orderLists")
    public ResultBean queryOrderLists() {
        String result = miCro1Service.queryOrderLists();
        return ResultBean.success(result);
    }

}
